package com.csvw.skr.basic.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2016/9/19.
 */
@Entity
@Table(name = "csvw_skr_basic_user")
public class User{
    /**
     * 员工号
     */
    @Id
    @Column(name = "pk_empno", length = 20, unique = true, nullable = false)
    private String empno;
    /**
     * 员工邮箱名
     */
    @Column(name = "email", length = 50, unique = true, nullable = false)
    private String email;
    /**
     * 员工姓名
     */
    @Column(name = "name", length = 50)
    private String name;
    /**
     * 员工手机号
     */
    @Column(name = "phone", length = 20)
    private String phone;
    /**
     * 所属组织编号
     */
    @Column(name = "organization", length = 20)
    private String organization;
    /**
     * 所属角色编号
     */
    @Column(name = "role", length = 20)
    private String role;

    @Column(name = "position", length = 20)
    private String position;
    /**
     * 所属岗位编号
     */
    @Column(name = "job", length = 20)
    private String job;
    /**
     * 员工密码
     */
    @Column(name = "password", length = 50)
    private String password;
    /**
     * 数据是否有效
     */
    @Column(nullable=false, columnDefinition="bit default 1")
    private boolean active;

    /**
     * 数据创建时间
     */
    private Date created;

    /**
     * 数据更新时间
     */
    private Date updated;

    public String getEmpno() {
        return empno;
    }

    public void setEmpno(String empno) {
        this.empno = empno;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }
}
